import java.util.Arrays;
public class SortArray {

	/**
	 * @param args
	 */
	public static void main(String[] args) {
		int numbers[] = new int[5];
		numbers[0] = 99;
		numbers[1] = 56;
		numbers[2] = 45;
		numbers[3] = 78;
		numbers[4] = 98;
		for (int i=0;i<numbers.length;i++)
		{
			System.out.println("Before Sorting--- " +numbers[i]);
		}
		/*
		Arrays.sort(numbers);
		for (int i=0;i<numbers.length;i++)
		{
			System.out.println("After Sorting---" +numbers[i]);	
		}
		*/
		int comp = 0;
		for (int i=1;i<numbers.length;i++)
		{
			for(int j=0;j<i;j++)
			{
				if(numbers[j]>numbers[i])
				{
					comp = numbers[i];
					numbers[i] = numbers[j];
					numbers[j] = comp;
					System.out.print(numbers[j]);
				}
			}
			
		}


		

	}

}
